<!--<template>-->
<!--    <div class="global">-->
<!--        <div class="divItem">-->
<!--            设置修正曲线：{{ curve_type}}-->
<!--        </div>-->
<!--        <hr>-->
<!--        <div ref="list" class="divItem">-->

<!--        </div>-->
<!--        <hr>-->
<!--        &lt;!&ndash;        <p>{{ para }}</p>&ndash;&gt;-->
<!--&lt;!&ndash;        <button style="margin:3px;" @click="onclick('确定')">确定</button>&ndash;&gt;-->
<!--    </div>-->
<!--</template>-->

<!--<script>-->
<!--export default {-->
<!--    name: "correctCurve",-->
<!--    data() {-->
<!--        return {-->
<!--            curve_type: JSON.parse(this.$route.params.curve)  // 修正曲线的类型-->
<!--        }-->
<!--    },-->
<!--    methods:{-->

<!--    }-->
<!--}-->
<!--</script>-->

<!--<style scoped>-->

<!--</style>-->

<template>
    <div class="global">
        <div class="divItem">
            未检测到修真曲线设置信息：{{ curve_name }}

        </div>
        <div class="divItem">开发文档: <span
                style="font-weight: bolder;color: slateblue;">https://open.wps.cn/docs/office</span></div>
        <hr>
        <div class="divItem">
            <button style="margin:3px;" @click="onbuttonclick('dockLeft')">设置</button>


        </div>
        <hr>
        <div class="divItem">文档文件名为：<span>{{ docName }}</span></div>
    </div>
</template>

<script>
import axios from 'axios'
import taskPane from './js/taskpane.js'

export default {
    name: 'TaskPane',
    data() {
        return {
            DemoSpan: '',
            docName: '',
            curve_type: this.$route.params.curve,
            curve_name: '',

        }
    },
    methods: {
        onbuttonclick(id) {
            return taskPane.onbuttonclick(id)
        },
        onDocNameClick() {
            this.docName = taskPane.onbuttonclick('getDocName')
        },
        onOpenWeb() {
            taskPane.onbuttonclick('openWeb', this.DemoSpan)
        },

    },
    mounted() {
        axios.get('/.debugTemp/NotifyDemoUrl').then((res) => {
            this.DemoSpan = res.data;
            if (this.curve_type === "f_T0_power") {
                this.curve_name = "环境温度对功率的修正系数"
            } else if (this.curve_type === "f_P0_power") {
                this.curve_name = "大气压力对功率的修正系数"
            } else if (this.curve_type === "f_humid0_power") {
                this.curve_name = "环境相对湿度对功率的修正系数"
            } else if (this.curve_type === "f_T0_hr") {
                this.curve_name = "环境温度对热耗率的修正系数"
            } else if (this.curve_type === "f_P0_hr") {
                this.curve_name = "大气压力对热耗率的修正系数"
            } else if (this.curve_type === "f_humid0_hr") {
                this.curve_name = "环境相对湿度对热耗率的修正系数"
            }

        });
        axios.get('/.debugTemp/wpsjsrpcsdk')
    }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.global {
    font-size: 15px;
    min-height: 95%;
}

.divItem {
    margin-left: 5px;
    margin-bottom: 18px;
    font-size: 15px;
    word-wrap: break-word;
}
</style>
